import Input from './input.vue'
import Switch from './switch.vue'
import Select from './select.vue'
import Date from './date.vue'
import Checkbox from './checkbox.vue'
import Tree from './tree.vue'
import List from './list.vue'
import Radio from './radio.vue'
import Message from './message.vue'
import DbInput from './dbInput.vue'



const components = [
  Input,
  Switch,
  Select,
  Tree,
  Date,
  Checkbox,
  List,
  Radio,
  Message,
  DbInput
]

const Config = {
  install(Vue) {
    if (this.installed) return
    this.installed = true

    components.map(component => {
      Vue.component(component.name, component);
    })
  }
}

export default Config
